package enumzb;

/**
 * @author wzby
 * @Date: 2022/8/11 10:39
 */
public class Demo {
    public static void main(String[] args) {
        Color c = Color.BLACK;
        Color b = Color.BLUE;
        Color d = Color.RED;
        System.out.println(c instanceof Color);
        System.out.println(b instanceof Color);
        System.out.println(d instanceof Color);
        System.out.println(c.ordinal());
        System.out.println(b.ordinal());
        System.out.println(d.ordinal());
        //.ordinal获得顺序代号
    }
}
